Skip to main content

All Questions

0votes
2answers
88views

How to make directive use the controller specified in directive attribute?

So I have a directive: <directive data="user" templateUrl="./user.html" controller="UserController"></directive> I want that directive to use the controller ...
stealz's user avatar
0votes
1answer
54views

Passing service call from directive to controller in angularJS

I have a directive, who receive a file to upload in httpPostFactory service and php code <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.3/angular.min.js"></script> ...
Andres CC's user avatar
0votes
1answer
161views

Accessing the checkbox checked from the controller in angularjs

There are a couple of checkboxes and a button. When i press the button need to know which all checkboxes are selected in the controller. I have a controller Mcontroller where i have $scope....
Deepak's user avatar
0votes
2answers
1kviews

custom directive to mask sensitive data while keeping the original value

Using: angularjs 1.4. I need to write a directive that hides sensitive data (replacing the middle section with asterisk '*') for ngModel and ngBind, but I'd also need to keep the original, unmasked ...
Tarek's user avatar
  • 3,158
0votes
0answers
533views

AngularJS unable to perform file upload [duplicate]

I am doing a file upload in angularjs. I am unable to get the file object content before sending to my back-end. XHR, headers: XHR-Header I have no idea why because I can get the content in my logs. ...
user avatar
-1votes
1answer
230views

AngularJS Unable to display upload file logs [duplicate]

I am trying to create a file upload function using angularjs which will just accept the file and send it to the server side (Django). To ensure the file upload function is working fine, I've placed ...
user3774763's user avatar
0votes
2answers
811views

AngularJS file upload Error: $injector:unpr Unknown Provider

I am trying to do a file upload using angularjs. But I am getting this error for the past few days and I am unable to resolve: angular.js:13920 Error: [$injector:unpr] http://errors.angularjs.org/1....
user3774763's user avatar
0votes
1answer
127views

AngularJS component binding a function

Let's say, we were trying to delete an item from the list using the web api.We had created a child component named as remove-item using parameters - item and onRemove.On click of a item,we would like ...
ColleenF123456's user avatar
3votes
2answers
974views

A controller with this name is not registered -- Error: $controller:ctrlreg

Property Binding | AngularJS We were trying to use property binding in AngularJS Directives,but the problem raised the error stated as The controller with the name counterController is not ...
ColleenF123456's user avatar
0votes
0answers
59views

How to Access directive data from a controller from a seperate file

Access directive data from a controller from a separate file. Wanted to access the data from SheetJSImportDirective which is the $scope.$apply function that contains $scope.opts.data. The $scope....
user avatar
1vote
3answers
175views

$scope is not defined in script 2

Unable to fetch ng-change selected value from the dropdown. I'm trying to pass the selected value from the dropdown to API call in script 2 as below, but unable to do so. In the chrome developer tools ...
user11130182's user avatar
0votes
2answers
119views

use a directive with public scope as a isolated scope

Some time ago I have written a custom directive and it is now used at many places inside the code (not possible to change it anymore). It has a public scope and that was fine until today. Now I want ...
Elio's user avatar
  • 478
0votes
1answer
28views

angularJS validate input field with the help of $emit and $on

I am creating a web app in which I want to validate some of my input fields so I am using $emit and $on to keep it short I created a directive which looks like this angular.module('myapp')....
user avatar
1vote
2answers
82views

set focus to textbox from angularJS controller

I am creating a web app in which I am using angularJS, I have a jqueryui datepicker , which looks like this <input type="text" ng-model="rc.reg.mddoj" ng-blur="rc.dojChange()" title="Date Of ...
user avatar
0votes
1answer
44views

Add ngModel directive to dynamic element in Javascript

Is there a way to use javascript to apply the ng-model directive to a created element? In the code below, I want the new select element to be bound using ng-model to a scoped variable inside the ...
monkeyWithAMachinegun's user avatar

153050per page
close